package com.molin.IOtest.FileTest;

import java.io.File;

public class Demo1 {
    public static void main(String[] args) {
//        method1();
//        method2();
        method3();
    }

    public static void method3() {
        File file1 = new File("C:\\molin");
        String path = "a.txt";
        File file
                = new File(file1, path);
        System.out.println(file);
    }

    public static void method2() {
        String path1 = "C:\\molin";
        String path2 = "ax.txt";
        File file = new File(path1, path2);
        System.out.println(file);
    }

    public static void method1() {
        String path = "C:\\molin\\a.txt";
        File file1 = new File(path);
        System.out.println(file1);
    }
}
